<template>
  <div class="site-aside-container">
    <template v-if="data.avatar">
      <Avatar :url="data.avatar" />
      <h1 class="title">{{ data.siteTitle }}</h1>
    </template>
    <Contact v-if="data"/>
    <Menu />
    <p class="footer" v-if="data">
      {{ data.icp }}
    </p>
  </div>
</template>

<script>
import Avatar from "../Avatar";
import Contact from "./Contact";
import Menu from "./Menu";
import { mapState } from "vuex";
export default {
  components: {
    Avatar,
    Contact,
    Menu,
  },
  computed: mapState("setting", ["data"]),
};
</script>

<style lang="less" scoped>
.site-aside-container {
  width: 100%;
  height: 100%;
  padding: 20px 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  .avatar-container {
    margin: 0 auto;
  }
  .title {
    font-size: 1.2em;
    color: #fff;
    text-align: center;
    font-weight: 400;
  }
  .footer {
    text-align: center;
    font-size: 12px;
    color: rgb(61, 60, 60);
  }
}
</style>